<form>
  <input id="ex1" type="reset" value="Reset">
  <input id="ex2" type="submit" value="Submit">
</form>
<script>
  document.addEventListener('contextmenu', parent.onEventInFrame, true);
</script>
